package com.hejia.alauda.service;

import com.hejia.alauda.entity.BankCard;
import com.hejia.alauda.entity.Order;
import com.hejia.alauda.entity.PayGate;
import com.hejia.alauda.entity.PayOrder;
import com.hejia.alauda.entity.Product;
import com.hejia.alauda.entity.User;

/**
 * 新手体验服务
 * @author hyr
 *
 */
public interface RookieService {

	/**
	 * 新手体验产品序列号
	 */
	public static final String ROOKIE_PRODUCT_SERIAL = "EPR";
	
	/**
	 * 创建新手产品
	 * @return
	 */
	Product createRookieProduct();

	/**
	 * 创建新手体验模拟订单
	 * @param user
	 * @param product
	 * @param from
	 * @param paygate
	 * @return
	 */
	Order createRookieOrder(User user, Product product, String source, PayGate paygate, BankCard bankCard);

	/**
	 * 是否已参加过新手体验
	 * @param userId	用户ID
	 * @return
	 */
	boolean isExperienced(Long userId);

	/**
	 * 添加新手理财体验红包
	 * @param payOrder	支付订单
	 */
	void addRookieExperienceBonus(PayOrder payOrder);
}
